﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO_HealthInsurance;
using DAO_HealthInsurance;
using System.Data;
namespace BLL_HealthInsurance
{
   public class BLLNews
    {
       DAONews objnew= new DAONews();

        public DataTable Listnew()
        {
            return objnew.ListNews();
        }
        public int insertnew(DTONews objNews)
        {
            return objnew.InsertNews(objNews);
        }
        public int updateNews(DTONews objNews)
        {
            return objnew.updateNews(objNews);
        }
        public int deleteNews(DTONews objNews)
        {
            return objnew.Deletenews(objNews);
        }
        public DataTable GetNewBytitle(DTONews objNews)
        {
            return objnew.GetnewById(objNews);
        }
        public DataTable GetNewById(DTONews objNews)
        {
            return objnew.GetnewById(objNews);
        }
        public DataTable GetnewByTitle(string title)
        {
            return objnew.GetnewByTitle(title);
        }
    }
}
